package org.idol.generator.codegen.mybatis.javamapper.sqlprovider;

import org.mybatis.generator.api.IntrospectedColumn;
import org.mybatis.generator.api.dom.java.Method;
import org.mybatis.generator.api.dom.java.TopLevelClass;

import java.util.List;

/**
 * @author coco
 * @date 2020-06-27 10:52
 **/
public class ProviderSelectOneByExampleWithBLOBsMethodGenerator extends ProviderSelectOneByExampleWithOutBLOBsMethodGenerator{

    public ProviderSelectOneByExampleWithBLOBsMethodGenerator(boolean useLegacyBuilder) {
        super(useLegacyBuilder);
    }

    @Override
    public List<IntrospectedColumn> getColumns() {
        return introspectedTable.getAllColumns();
    }

    @Override
    public String getMethodName() {
        return introspectedTable.getSelectOneByExampleWithBLOBsStatementId();
    }

    @Override
    public boolean callPlugins(Method method, TopLevelClass topLevelClass) {
        return context.getPlugins().providerSelectOneByExampleWithBLOBsMethodGenerated(method, topLevelClass,
                introspectedTable);
    }
}
